﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
namespace BLL
{
   public class RolePermissionBll
    {
       RolePermissionDal dal = new RolePermissionDal();
       /// <summary>
       /// 添加角色权限
       /// </summary>
       /// <param name="m"></param>
       /// <returns></returns>
       public bool AddRolePermission(RolePermission m)
       {
           return dal.Add(m);
       }
       /// <summary>
       /// 显示角色权限
       /// </summary>
       /// <returns></returns>
       public List<RolePermission> ShowRolePermission()
       {
           return dal.Show();
       }
       /// <summary>
       /// 删除角色权限
       /// </summary>
       /// <param name="m"></param>
       /// <returns></returns>
       public bool DelRolePermission(RolePermission m)
       {
           return dal.Del(m);
       }
    }
}
